<div style="clear: both;">
    <?php echo CHtml::beginForm('', 'post', array('class' => 'dot_form fw_60', 'enctype'=>'multipart/form-data')); ?>
    <fieldset>
        <legend><?php echo Yii::t('common', 'please_fill_table_contents'); ?></legend>
        <dl>
            <dt><?php echo CHtml::activeLabelEx($model, 'node_id'); ?></dt>
            <dd>
                <?php
                echo CHtml::activeDropDownList($model, 'node_id',
                    CHtml::listData(Node::getCurrentLevelNodes(), 'id', 'name')
                );
                ?>
            </dd>
            <dt><?php echo CHtml::activeLabelEx($model, 'title'); ?></dt>
            <dd>
                <div>
                    <?php
                    echo CHtml::activeTextField($model, 'title', array(
                        'size' => 60,
                        'maxlength' => 200,
                        'class' => 'large',
                    ));
                    ?>
                </div>
                <div><?php echo CHtml::error($model, 'title'); ?></div>
            </dd>
            <dt><?php echo CHtml::activeLabelEx($model, 'history_date'); ?></dt>
            <dd>
                <div>
                    <?php
                    $this->widget('zii.widgets.jui.CJuiDatePicker', array(
                        'model' => $model,                        
                        'attribute' => 'history_date',
                        'language' => 'zh_cn',
                        'options' => array(
                            'showAnim' => 'fold',
                            'dateFormat' => 'yy-mm-dd',
                            'changeYear' => true,
                            'changeMonth' => true,
                            'yearRange' => '1949:' . date('Y', time()),
                        ),
                    ));
                    ?>
                    <?php echo CHtml::activeLabelEx($model, 'status'); ?>
                    <?php echo CHtml::activeDropDownList($model, 'status', Options::statusOptions()); ?>
                </div>
                <div><?php echo CHtml::error($model, 'history_date'); ?></div>
            </dd>
            <dt><?php echo CHtml::activeLabelEx($model, 'summary'); ?></dt>
            <dd>
                <div style="width: 850px; overflow:auto;">
                    <?php
                    $this->widget('application.extensions.ckeditor.CKEditor', array(
                        'model' => $model,
                        'attribute' => 'summary',
                        'language' => 'zh_cn',
                        'editorTemplate' => 'full',
                    )); ?>
                </div>
                <div><?php echo CHtml::error($model, 'summary'); ?></div>
            </dd>            
            <dt></dt>
            <dd>
                <?php
                echo CHtml::submitButton($model->isNewRecord
                ? Yii::t('common', 'save') : Yii::t('common', 'update'), array(
                    'class' => 'btn'
                ));
                ?>
            </dd>
        </dl>
    </fieldset>
    <?php echo CHtml::endForm(); ?>
</div>